﻿using MediatR;
using RedDragon.Common.Dtos;
using SqlSugar;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.Purchases
{
    /// <summary>
    /// 获取采购/委外订单
    /// </summary>
    public class SearchPurchaseOutsourceCommand : IRequest<Result<PageResultDto<PurchaseOutsourcesDto>>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每页显示几条
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 订单编码
        /// </summary>
        public string PurchaseNumber { get; set; }

        /// <summary>
        /// 订单名称
        /// </summary>
        public string PurchaseName { get; set; }

        /// <summary>
        /// 订单类型(外键)
        /// </summary>
        public int PurchaseTypeId { get; set; }

        /// <summary>
        /// 供应商(外键)
        /// </summary>
        public int SupplierId { get; set; }

        /// <summary>
        /// 所属项目(外键)
        /// </summary>
        public int AffiliatedProjectId { get; set; }

        /// <summary>
        /// 状态 1-新建 2-变更 3-确认 4-取消
        /// </summary>
        public int PurchaseStatus { get; set; }
    }
}
